<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>&lt;%GLibOptionArg&gt;: </title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
<link rel="home" href="index.html" title="">
<link rel="up" href="ch01.html" title="GLib">
<link rel="prev" href="re43.html" title="&lt;%GLibOnceStatus&gt;">
<link rel="next" href="re45.html" title="&lt;%GLibOptionError&gt;">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="re43.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="re45.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="id-1.1.45"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>&lt;%GLibOptionArg&gt;</h2>
<p>&lt;%GLibOptionArg&gt;</p>
</div>
<div class="refsect1">
<a name="id-1.1.45.2"></a><h2>Description</h2>
<p>The <span class="type">GOptionArg</span> enum values determine which type of extra argument the
options expect to find. If an option expects an extra argument, it can
be specified in several ways; with a short option: <code class="code">-x arg</code>, with a long
option: <code class="code">--name arg</code> or combined in a single argument: <code class="code">--name=arg</code>.</p>
</div>
<div class="refsect1">
<a name="id-1.1.45.3"></a><h2>Members</h2>
<div class="refsect2">
<a name="id-1.1.45.3.2"></a><h3>none</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_NONE</code></span></em></p>
<p>No extra argument. This is useful for simple flags.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.3"></a><h3>string</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_STRING</code></span></em></p>
<p>The option takes a UTF-8 string argument.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.4"></a><h3>int</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_INT</code></span></em></p>
<p>The option takes an integer argument.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.5"></a><h3>callback</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_CALLBACK</code></span></em></p>
<p>The option provides a callback (of type
    <span class="type">GOptionArgFunc</span>) to parse the extra argument.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.6"></a><h3>filename</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_FILENAME</code></span></em></p>
<p>The option takes a filename as argument, which will
       be in the GLib filename encoding rather than UTF-8.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.7"></a><h3>string-array</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_STRING_ARRAY</code></span></em></p>
<p>The option takes a string argument, multiple
    uses of the option are collected into an array of strings.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.8"></a><h3>filename-array</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_FILENAME_ARRAY</code></span></em></p>
<p>The option takes a filename as argument,
    multiple uses of the option are collected into an array of strings.</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.9"></a><h3>double</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_DOUBLE</code></span></em></p>
<p>The option takes a double argument. The argument
    can be formatted either for the user's locale or for the "C" locale.
    Since 2.12</p>
</div>
<div class="refsect2">
<a name="id-1.1.45.3.10"></a><h3>int64</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_OPTION_ARG_INT64</code></span></em></p>
<p>The option takes a 64-bit integer. Like
    <code class="constant">G_OPTION_ARG_INT</code> but for larger numbers. The number can be in
    decimal base, or in hexadecimal (when prefixed with <code class="code">0x</code>, for
    example, <code class="code">0xffffffff</code>). Since 2.12</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>
